<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        <a v-bind:href="link">fafafafaf</a>
        <!--        简写格式：:href="link"         -->
        <a :href="link">fafafafaf</a>
        <span :class="{'active':isActive,'text-danger':hasError}"
              :style="{'color':color,'fontSize':fontsize}"
        >你好</span>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script>
        let vm = new Vue({
            el:"#app",
            data:{
                fontsize:"3rem",
                color:"red",
                hasError:true,
                isActive:true,
                link:"http://www.baidu.com"
            }
        })
    </script>
</body>
</html>